// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from "vue-resource";
import moment from "moment";
import './assets/js/back.js'
// import MintUI from 'mint-ui'    //全局导入
import { Button , Header } from "mint-ui";  //按需导入
import { Swipe, SwipeItem } from "mint-ui";

// import 'mint-ui/lib/style.css'   //按需导入不需要引入样式
import './lib/mui/css/mui.css'    //引入第三方UI组件
import './lib/mui/css/icons-extra.css'    //引入第三方UI组件

Vue.component(Button.name, Button);
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.use(VueResource)

// Vue.use(MintUI)

Vue.config.productionTip = false
Vue.filter("selectDate", function(data, pattern = "YYYY-DD-MM HH:mm:ss") {
  return moment(data).format(pattern);
});

/* eslint-disable no-new */

new Vue({
  el: '#app',
  render:c=>c(App),
  router,
  methods:{
    
  },
  created(){
    
  }
})
